feat: Add user_migration:manage command and last export date#993
feat: Add user_migration:manage command and last export date#993provokateurin merged 3 commits intomainfrom
Conversation
Exporting a user from occ now stores the date of last export in the database. A new command user_migration:manage allows to list exported users and delete them as a batch. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
3f88e59 to
7f428b1
Compare
provokateurin
left a comment
There was a problem hiding this comment.
This feels really dangerous. What if you exported some users earlier and then want to delete newly exported users, but there is no way to prevent the earlier users being deleted as well?
Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com> Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Do you have a proposition to fix that ? Would it feel less dangerous if I add an option to filter by minimum date? |
Either this, or a flag to filter by exact export date (where the export command would set all accounts to the same value an print it at the end). |
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
Added a --since option 👍 |
Exporting a user from occ now stores the date of last export in the database. A new command user_migration:manage allows to list exported users and delete them as a batch.